package cs275.ants.graphics;

import java.io.IOException;
import java.util.logging.Logger;

import com.jme.bounding.BoundingSphere;
import com.jme.scene.TriMesh;

public class CharacterGenerator{
	private static final Logger logger = Logger.getLogger(Graphics.class
			.getName());
	private Resources resources;
	
	
	public CharacterGenerator(Resources resources) {
		this.resources = resources;
	}

	public Character generate() {
		TriMesh triMesh;
		try {
			triMesh = resources.antMesh();
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
		triMesh.setLocalScale(2.0f);
		triMesh.setModelBound(new BoundingSphere());
		triMesh.updateModelBound();
		
		Character ant = new Character();
		ant.setModel(triMesh);
		return ant;
	}
}
